package com.techsen.tsweb.sys.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.techsen.tsweb.core.service.impl.BaseService;
import com.techsen.tsweb.sys.dao.RoleDao;
import com.techsen.tsweb.sys.domain.Role;
import com.techsen.tsweb.sys.service.RoleService;

@Service
public class RoleServiceImpl extends BaseService<Role, RoleDao> implements RoleService {

    @Resource @Override
    public void setDao(RoleDao dao) {
        this.dao = dao;
    }

    /**
     * 根据角色名查询角色集和
     */
    @Override
    public List<Role> getRolesLikeName(String roleName) {
        return this.dao.getRolesLikeName(roleName);
    }

}
